#include "messages.hpp"
#include <cassert>
#include <cstring>

using namespace message;

LogStatic::LogStatic(rl::ActorId to, const char *message)
    : Message(to), string(message, strlen(message)) {
  assert(string.size());
}

LogDynamic::LogDynamic(rl::ActorId to, const char *message, uint_fast8_t size_):
    Message(to), size{size_} {
    assert(size < SZ);
    std::memcpy(data, message, size);
}
